import 'package:flutter/material.dart';
import 'package:hc_ui/config/hc_customer_config.dart';
import 'package:hc_ui/config/hc_image_config.dart';
import 'package:hc_ui/theme/hc_all_theme.dart';

class HcUiInitialize {
  static register(
      {String? imagePrefix,
      HcAllTheme? themeData,
      ThemeMode? themeMode,
      HcImageConfig? imageConfig}) {
    if (imagePrefix != null) {
      HcCustomerConfig().imagePrefix = imagePrefix;
    }
    if (themeMode != null) {
      HcCustomerConfig().themeMode = themeMode;
    }
    if (imageConfig != null) {
      HcCustomerConfig().hcImageConfig = imageConfig;
    }
    if (themeData != null) {
      HcCustomerConfig().allTheme = themeData;
    }
  }
}
